home *** CD-ROM | disk | FTP | other *** search
/ CrystalVision Software Se… Wiki Wonder - Wikipedia / CrystalVision Software Services 703: The Wiki Wonder - Wikipedia.iso / 0703 / Business / CodeX Apps / CodeX.exe / CodeX / html / iSpace / Calendar.js next >
Encoding:
Text File  |  2006-10-15  |  1.6 KB  |  73 lines

  1. var TipDelay;
  2. function HoverLabel(LabelName)
  3. {
  4.     document.getElementById('LabelName').innerHTML = LabelName;
  5.     
  6.     if(TipDelay)    clearTimeout(TipDelay);
  7.     TipDelay = setTimeout("document.getElementById('LabelName').innerHTML = '';", 2000);
  8. }
  9.  
  10. function SelectColor(ID)
  11. {
  12.     var Colors = new Array();
  13.     
  14.     Colors[1]="Red";
  15.     Colors[2]="Grey";
  16.     Colors[3]="Blue";
  17.     Colors[4]="Green";
  18.     Colors[5]="Orange";
  19.     Colors[6]="Yellow";
  20.     Colors[7]="Purple";
  21.     
  22.     for(i = 1; i <= 7; i++)
  23.     {
  24.         document.getElementById(Colors[i]).className = 'ColorLabel Label_'+i;
  25.         
  26.         if(i==ID)    document.getElementById(Colors[i]).className = 'ColorLabel Label_'+i+' SelectedColor';
  27.     }
  28.     
  29.     document.getElementById('NewEventForm').ColorLabel.value = ID;
  30. }
  31.  
  32. function ShowDay(DayID)
  33. {
  34.     document.getElementById('Day_Detail').innerHTML = "<div id='EventLoading'></div>";
  35.     if(document.getElementById('Day_Detail').style.display=='none')
  36.         Effect.Appear('Day_Detail', {duration:0.2});
  37.         
  38.     xajax_ShowDay(DayID);
  39. }
  40.  
  41. function AddAnEvent(DayID)
  42. {
  43.     document.getElementById('NewEventForm').EventDate.value = DayID;
  44.     
  45.     if(document.getElementById('Day_Detail').style.display!='none')
  46.     {
  47.         Effect.Fade('Day_Detail', {duration:0.2});
  48.         document.getElementById('NewEvent_Window').style.display='block';
  49.     }
  50.     else
  51.     {
  52.         Effect.Appear('NewEvent_Window', {duration:0.2});
  53.     }
  54. }
  55.  
  56. function ShowTrash(ID)
  57. {
  58.     document.getElementById('Trash_'+ID).style.visibility = 'visible';
  59. }
  60.  
  61. function HideTrash(ID)
  62. {
  63.     document.getElementById('Trash_'+ID).style.visibility = 'hidden';
  64. }
  65.  
  66. function TrashEvent(ID)
  67. {
  68.     if(confirm(DeleteConfirmText))
  69.     {
  70.         Effect.Fade('EventItem_'+ID, {duration:0.2});
  71.         xajax_RemoveEvent(ID);
  72.     }
  73. }